package org.xmdl.silk.wrap;

import org.xmdl.silk.Literal;
import org.xmdl.silk.impl.LiteralImpl;
import org.xmdl.silk.visit.Visitor;

public class LiteralWrap extends LiteralImpl implements Literal, Wrapped {

	private final Literal w;

	public LiteralWrap(Literal w) {
		this.w = w;
	}

	@Override
	public String getValue() {
		return w.getValue();
	}

	@Override
	public void setValue(String newValue) {
		w.setValue(newValue);
	}

	public boolean accept(Visitor visitor)
	{
		return (visitor.visit(this));
	}

}
